import request from '@/utils/request'

// 查询仓库物流单价配置列表
export function listLogisticsPrice(query) {
  return request({
    url: '/app/logisticsPrice/list',
    method: 'get',
    params: query
  })
}

// 查询仓库物流单价配置详细
export function getLogisticsPrice(id) {
  return request({
    url: '/app/logisticsPrice/query/' + id,
    method: 'get'
  })
}

// 新增仓库物流单价配置
export function addLogisticsPrice(data) {
  return request({
    url: '/app/logisticsPrice/add',
    method: 'post',
    data: data
  })
}

// 修改仓库物流单价配置
export function updateLogisticsPrice(data) {
  return request({
    url: '/app/logisticsPrice/edit',
    method: 'post',
    data: data
  })
}

// 删除仓库物流单价配置
export function delLogisticsPrice(id) {
  return request({
    url: '/app/logisticsPrice/remove/' + id,
    method: 'delete'
  })
}

// 导出仓库物流单价配置
export function exportLogisticsPrice(query) {
  return request({
    url: '/app/logisticsPrice/export',
    method: 'get',
    params: query
  })
}
